#include "Int_Motor.h"

void Int_Motor_Init()
{
    HAL_TIM_PWM_Start(&htim3, TIM_CHANNEL_1);
    HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_4);
    HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_2);
    HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_3);
}

void Int_Motor_SetSpeed(Motor_Struct *motor)
{
    __HAL_TIM_SetCompare(motor->htim, motor->channel, motor->speed);
}
